package com.push.common.utils;



import com.push.common.param.AuthorParameters;
import com.push.common.param.GetPersonPubs;
import com.push.common.param.Parameters;
import com.push.common.param.Schema;

import java.util.ArrayList;
import java.util.List;

public class AMinerUtil {
    /**
     * 获取作者发表论文参数
     * @param id
     * @param offset
     * @param size
     * @return
     */
    public static List<GetPersonPubs> getPersonPubs(String id, int offset, int size){
        List<GetPersonPubs> personPubs = new ArrayList<>();
        personPubs.add(new GetPersonPubs(new Parameters(id, offset, size), new Schema()));
        return personPubs;
    }

    /**
     * 检索作者参数
     * @param author
     * @return
     */
    public static List<AuthorParameters> getAuthorParameters(String author){
        List<AuthorParameters> authorParameters = new ArrayList<>();
        authorParameters.add(new AuthorParameters(author));
        return authorParameters;
    }
}
